package com.hd.trans.network.apiService;


import com.hd.trans.network.bean.aiChat.AiChatResponse;
import com.hd.trans.network.bean.aiChat.AiChatTaskResponse;

import io.reactivex.Observable;
import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.POST;


/**
 * Desc: AI翻译网络请求接口
 */
public interface AiTransService {

    /**
     * 创建任务接口
     */
    @Deprecated
    @POST("api/v4/sub/ai/com/chat/task")
    Observable<AiChatTaskResponse> chatTask(@Body RequestBody requestBody);

    /**
     * 查询任务接口
     */
    @POST("api/v4/sub/ai/com/chat/query")
    Observable<AiChatResponse> queryTack(@Body RequestBody requestBody);


    @POST("api/v4/sub/ai/doubao/chat/sse")
    Observable<AiChatResponse> chatSSE(@Body RequestBody requestBody);
}
